package cn.redsoft.wechatapi.msg.req.generic;

import cn.redsoft.wechatapi.msg.req.RequestMsg;
import cn.redsoft.wechatapi.msg.req.RequestMsgType;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("xml")
public class LinkRequestMsg extends RequestMsg {
	@XStreamAlias("Title")
	protected String title;
	@XStreamAlias("Description")
	protected String description;
	@XStreamAlias("Url")
	protected String url;

	public LinkRequestMsg() {
		this.msgType = RequestMsgType.LINK;
	}

	public LinkRequestMsg(String toUserName, String fromUserName,
			Long createTime, long msgId) {
		super(toUserName, fromUserName, createTime, null, msgId);
		this.msgType = RequestMsgType.LINK;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Override
	public String toString() {
		return "LinkRequestMsg [title=" + title + ", description="
				+ description + ", url=" + url + ", toUserName=" + toUserName
				+ ", fromUserName=" + fromUserName + ", createTime="
				+ createTime + ", msgType=" + msgType + ", msgId=" + msgId
				+ "]";
	}

}
